package com.whros.algorithm.sort;

/**
 * author whroid
 * date 18/10/20 下午9:41
 */
public class SortUtils {

    public static <T> void swap(T[] arr, int indexA, int indexB) {
        T temp = arr[indexA];
        arr[indexA] = arr[indexB];
        arr[indexB] = temp;
    }


    public static <T> void print(T[] list) {
        for (int i = 0; i < list.length; i++) {
            System.out.print(list[i] + " ");
        }
        System.out.println();
    }
}
